﻿using System.Drawing;

namespace Graphix.Elements
{
    public class Background
    {
        public Background(Color? color = null, Color? stroke = null, float strokeWidth = 0)
        {
            this.Color = color.HasValue ? color.Value : Color.Transparent;
            this.Stroke = stroke.HasValue ? stroke.Value : Color.Transparent;
            this.StrokeWidth = strokeWidth;
        }

        public Color Color { get; set; }

        public Color Stroke { get; set; }

        public float StrokeWidth { get; set; }
    }
}
